<div id="toolbar" >
  <div class="right-toolbar">
  <a title="Gửi">
  <button onclick="document.forms['sendemail'].submit()">
  <img src="<?php echo $this->_baseUrl;?>/public/images/web/send.png" height="32px" width="32px"/>
  <span><p>Gửi</p></span>
  </button>
  </a>
  </div>
  <div class="left-toolbar">
  <img src="<?php echo $this->_baseUrl;?>/public/images/web/contact.png" height="48px" width="48px"/>
  <span>Soạn thảo email</span>
  </div>
</div>

<div id="box-content">
 <div id="box-content1">
    <form id="sendemail" action="<?php echo $this->_baseUrl;?>/admin/sendemail" method="post">
      <?php
        if($this->status == 1)
        {
      ?>      
      <div style="padding-bottom:15px; color:#FF0000;width:400px;font-weight:bold;">
      <img src="<?php echo $this->_baseUrl;?>/public/images/web/error.png" width="32" height="32" style="float:left; margin-right:10px;"/>
      Lỗi : <?php echo $this->message;?>
      </div>
      <?php
       }
       else
       if($this->status == 2)
       {
      ?>
      <div style="padding-bottom:15px; color:#00F;width:400px;font-weight:bold;">
      <img src="<?php echo $this->_baseUrl;?>/public/images/web/success.png" width="32" height="32" style="float:left; margin-right:10px;"/>
      Gửi email thành công
      </div>
      <?php  
       }
      ?>
      <p>
        <label>Tới</label>
        <textarea name="toEmail" cols="70" rows="2"><?php echo $this->input_to;?></textarea>
      </p>
      <p>
        <label>Tiêu đề</label>
        <input type="text" name="titleEmail" style="padding: 5px;width: 570px;" value="<?php echo $this->input_title;?>"/>
      </p>
      
      <p> 
       <textarea name="contentEmail"><?php echo $this->input_content;?></textarea>
      </p>
    </form>
    <?php
    loadHelper('editor');
    echo ckeditor('contentEmail');
    ?>
 </div>
</div>